package org.datastealer.service.impl;

import org.datastealer.dao.api.CustomDao;
import org.datastealer.service.CustomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 * Note：
 *
 * @author ：mengjw
 * @description：用户自定义sql服务实现
 * @date ：Created in 2020/9/21
 */
@Service
public class CustomServiceImpl implements CustomService {

    @Lazy
    @Autowired
    private CustomDao customDao;

    @Override
    public Object runCustomSql(String sql) {
        return customDao.runCustomSql(sql);
    }

}